<!DOCTYPE html>
<html>

<head>
    <meta charset='utf-8'>
    <title>Mocha Tests</title>
    <link rel='stylesheet' href='../node_modules/mocha/mocha.css'>
    <link rel='stylesheet' href='../dist/iD.css'>
    <!-- <script src='../node_modules/d3/build/d3.js'></script> -->
</head>

<body style="overflow:scroll">
    <div id='mocha'></div>

    <script src='../node_modules/mocha/mocha.js'></script>
    <script src='../node_modules/chai/chai.js'></script>
    <script src='../node_modules/sinon/pkg/sinon.js'></script>
    <script src='../node_modules/sinon-chai/lib/sinon-chai.js'></script>
    <script src='../node_modules/happen/happen.js'></script>

    <script>
        if (typeof initMochaPhantomJS === 'function') {
            initMochaPhantomJS()
        }
    </script>

    <!-- include source files here... -->
    <script src='../dist/iD.js'></script>

    <script src='spec/spec_helpers.js'></script>

    <!-- include spec files below... -->
    <script src='spec/actions/add_entity.js'></script>
    <script src='spec/actions/add_member.js'></script>
    <script src='spec/actions/add_midpoint.js'></script>
    <script src='spec/actions/change_member.js'></script>
    <script src='spec/actions/change_preset.js'></script>
    <script src='spec/actions/change_tags.js'></script>
    <script src='spec/actions/circularize.js'></script>
    <script src='spec/actions/connect.js'></script>
    <script src='spec/actions/copy_entities.js'></script>
    <script src='spec/actions/delete_member.js'></script>
    <script src='spec/actions/delete_multiple.js'></script>
    <script src='spec/actions/delete_node.js'></script>
    <script src='spec/actions/delete_relation.js'></script>
    <script src='spec/actions/delete_way.js'></script>
    <script src='spec/actions/discard_tags.js'></script>
    <script src='spec/actions/disconnect.js'></script>
    <script src='spec/actions/join.js'></script>
    <script src='spec/actions/merge.js'></script>
    <script src='spec/actions/merge_nodes.js'></script>
    <script src='spec/actions/merge_polygon.js'></script>
    <script src='spec/actions/merge_remote_changes.js'></script>
    <script src='spec/actions/move.js'></script>
    <script src='spec/actions/move_node.js'></script>
    <script src='spec/actions/noop.js'></script>
    <script src='spec/actions/orthogonalize.js'></script>
    <script src='spec/actions/restrict_turn.js'></script>
    <script src='spec/actions/reverse.js'></script>
    <script src='spec/actions/revert.js'></script>
    <script src='spec/actions/split.js'></script>
    <script src='spec/actions/straighten_nodes.js'></script>
    <script src='spec/actions/straighten_way.js'></script>
    <script src='spec/actions/unrestrict_turn.js'></script>
    <script src='spec/actions/reflect.js'></script>
    <script src='spec/actions/extract.js'></script>
    <script src='spec/actions/upgrade_tags.js'></script>

    <script src='spec/behavior/hash.js'></script>
    <script src='spec/behavior/hover.js'></script>
    <script src='spec/behavior/select.js'></script>
    <script src='spec/behavior/lasso.js'></script>

    <script src='spec/core/context.js'></script>
    <script src='spec/core/difference.js'></script>
    <script src='spec/core/graph.js'></script>
    <script src='spec/core/history.js'></script>
    <script src='spec/core/tree.js'></script>
    <script src='spec/core/validator.js'></script>

    <script src='spec/geo/extent.js'></script>
    <script src='spec/geo/geo.js'></script>
    <script src='spec/geo/geom.js'></script>
    <script src='spec/geo/vector.js'></script>

    <script src='spec/lib/locale.js'></script>

    <script src='spec/modes/add_point.js'></script>
    <script src='spec/modes/add_note.js'></script>

    <script src='spec/operations/extract.js'></script>
    <script src='spec/operations/straighten.js'></script>

    <script src='spec/osm/changeset.js'></script>
    <script src='spec/osm/entity.js'></script>
    <script src='spec/osm/intersection.js'></script>
    <script src='spec/osm/multipolygon.js'></script>
    <script src='spec/osm/lanes.js'></script>
    <script src='spec/osm/node.js'></script>
    <script src='spec/osm/note.js'></script>
    <script src='spec/osm/relation.js'></script>
    <script src='spec/osm/way.js'></script>

    <script src='spec/presets/category.js'></script>
    <script src='spec/presets/collection.js'></script>
    <script src='spec/presets/index.js'></script>
    <script src='spec/presets/preset.js'></script>

    <script src='spec/renderer/background_source.js'></script>
    <script src='spec/renderer/features.js'></script>
    <script src='spec/renderer/map.js'></script>
    <script src='spec/renderer/tile_layer.js'></script>

    <script src='spec/services/mapillary.js'></script>
    <script src='spec/services/maprules.js'></script>
    <script src='spec/services/nominatim.js'></script>
    <script src='spec/services/openstreetcam.js'></script>
    <script src='spec/services/osm.js'></script>
    <script src='spec/services/osm_wikibase.js'></script>
    <script src='spec/services/streetside.js'></script>
    <script src='spec/services/taginfo.js'></script>

    <script src='spec/svg/areas.js'></script>
    <script src='spec/svg/data.js'></script>
    <script src='spec/svg/icon.js'></script>
    <script src='spec/svg/layers.js'></script>
    <script src='spec/svg/lines.js'></script>
    <script src='spec/svg/midpoints.js'></script>
    <script src='spec/svg/osm.js'></script>
    <script src='spec/svg/points.js'></script>
    <script src='spec/svg/svg.js'></script>
    <script src='spec/svg/tag_classes.js'></script>
    <script src='spec/svg/vertices.js'></script>

    <script src='spec/ui/cmd.js'></script>
    <script src='spec/ui/combobox.js'></script>
    <script src='spec/ui/confirm.js'></script>
    <script src='spec/ui/flash.js'></script>
    <script src='spec/ui/inspector.js'></script>
    <script src='spec/ui/modal.js'></script>
    <script src='spec/ui/raw_tag_editor.js'></script>

    <script src='spec/ui/fields/access.js'></script>
    <script src='spec/ui/fields/localized.js'></script>
    <script src='spec/ui/fields/wikipedia.js'></script>

    <script src='spec/util/array.js'></script>
    <script src='spec/util/clean_tags.js'></script>
    <script src='spec/util/keybinding.js'></script>
    <script src='spec/util/object.js'></script>
    <script src='spec/util/session_mutex.js'></script>
    <script src='spec/util/util.js'></script>

    <script src='spec/validations/almost_junction.js'></script>
    <script src='spec/validations/crossing_ways.js'></script>
    <script src='spec/validations/disconnected_way.js'></script>
    <script src='spec/validations/incompatible_source.js'></script>
    <script src='spec/validations/mismatched_geometry.js'></script>
    <script src='spec/validations/missing_role.js'></script>
    <script src='spec/validations/missing_tag.js'></script>
    <script src='spec/validations/outdated_tags.js'></script>
    <script src='spec/validations/private_data.js'></script>
    <script src='spec/validations/suspicious_name.js'></script>

    <script>
        window.mocha.run();
    </script>
</body>

</html>
